<!-- 售后保障 -->
<template>
	<view class="multiple-page">
		
		<view class="rich-box">
			<u-parse :html="afterSale"></u-parse>
		</view>
		
	</view>
</template>

<script>

import { mapMutations, mapActions, mapState, mapGetters } from 'vuex';
export default {
	components: {
	},
	data() {
		return {
			isEmpty: false,
			tabCur: 'all',
			afterSale: '',
			loadStatus: 'loadmore', //loadmore-加载前的状态，loading-加载中的状态，nomore-没有更多的状态
			currentPage: 1,
			lastPage: 1
		};
	},
	// 是否登录
	computed: {
		...mapGetters(['isLogin', 'authType']),
	},
	onLoad(e){
		let that = this;
		this.getcontent();
	},
	methods: {
		// 检测
		checkActivity(data, type) {
			if (data) {
				return !data.includes(type);
			}
			return true;
		},
		// 路由跳转
		jump(path, parmas) {
			this.showShare = false;
			this.$Router.push({
				path: path,
				query: parmas
			});
		},
		// 回到首页
		goHome() {
			this.$Router.replaceAll('/pages/index/index');
		},

		// 选项卡
		onTab(id) {
			this.tabCurrent = id;
		},
		
		// 组件返回的type;
		changeType(e) {
			this.buyType = e;
		},
		// 组件返回的规格;
		getSkuText(e) {
			this.currentSkuText = e;
		},
		// 售后保障
		getcontent() {
			let that = this;
			that.$http('goods.afterSale', {
			}).then(res => {
				if (res.code === 1) {
					that.afterSale = res.data;
				}
			});
		}
	}
};
</script>

<style lang="scss">
.multiple-page{
	background-color:#bebebe;
	min-height: 100%;
	padding-top: 20rpx;
	padding-bottom: 70rpx;
}
.rich-box{
	margin: 30rpx;
}
</style>
